<form class="layui-form model-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id|default=0}">
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">友链名称：</label>
			<div class="layui-input-inline">
				<input name="name" value="{$info.name|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入友链名称" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">URL地址：</label>
			<div class="layui-input-inline">
				<input name="url" value="{$info.url|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入友链URL地址" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">友链类型：</label>
			<div class="layui-input-inline">
				{common:select param="type|1|友链类型|name|id" data="$typeList" value="isset($info['type']) ? $info['type'] : 1"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">所属平台：</label>
			<div class="layui-input-inline">
				{common:select param="platform|1|所属平台|name|id" data="$platformList" value="isset($info['platform']) ? $info['platform'] : 1"}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">友链形式：</label>
			<div class="layui-input-inline">
				{common:select param="form|1|友链形式|name|id" data="$formList" value="isset($info['form']) ? $info['form'] : 1"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">状态：</label>
			<div class="layui-input-inline">
				{common:switch name="status" title="在用|停用" value="isset($info['status']) ? $info['status'] : 1"}
			</div>
		</div>
	</div>
	<div class="layui-form-item layui-hide image">
		<label class="layui-form-label">友链图片：</label>
		{upload:image name="image|图片|90x90|建议上传尺寸450x450" value="isset($info['image_url']) ? $info['image_url'] : ''"}
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">序号：</label>
		<div class="layui-input-inline">
			<input name="sort" value="{$info.sort|default=125}" lay-verify="required|number" autocomplete="off" placeholder="请输入序号" class="layui-input" type="text">
		</div>
	</div>
	{widget:submit name="submit|立即保存,close|关闭"}
</form>
